<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ include file="/page/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<%@ include file="/adapter/adapter-bootstrap.jsp" %>
<script type="text/javascript">


function  goBack(){
	//window.close();
	window.history.back(-1);
}


  function init(){
	  if('${recordKey}'!=""){
		  document.getElementById("recordKey").readOnly = true;
	  }
	  
	  if('${sPageParamTag.tagType}'!=""){
		  display('${sPageParamTag.tagType}');
	  }
  }
  
  function display(rkValue){
	  var  all_options=document.getElementById("elementType").options;
	  for(var i=0;i<all_options.length;i++){
		  if(all_options[i].value==rkValue){
			  all_options[i].selected = true;
		  }
	  }
  }
  
</script>
</head>
<body  onload="init()">
<div class="panel panel-default">
   <div class="panel-heading">
      <h3 class="panel-title">
          标签参数信息
      </h3>
   </div>
   <div class="panel-body">
<form class="form-horizontal" role="form" id="paramTagform"  action="${ctx}" method="post">
      <div class="form-group">
		<label for="recordKey" class="col-xs-2 control-label">标签唯一标识</label>
		<div class="col-xs-4">
		<input type="text" class="form-control" id="recordKey"  name="recordKey"  disabled="disabled"    value="${recordKey}"   placeholder="">
	    </div>
	    <label for="pageId" class="col-xs-2 control-label">归属页面标识</label>
		<div class="col-xs-4">
		<input type="text" class="form-control" id="pageId"  name="pageId"  disabled="disabled"  readonly="readonly" value="${pageId}"  placeholder="">
	    </div>
	  </div>   
	  <div class="form-group">
		<label for="templateParamCode" class="col-xs-2 control-label">归属参数代码</label>
		<div class="col-xs-4">
		<input type="text" class="form-control" id="templateParamCode"   name="templateParamCode"  disabled="disabled"   value="${sPageParamTag.templateParamCode}"   placeholder="app_icon_size">
	    </div>
	    <label for="tagName" class="col-xs-2 control-label">标签名称</label>
		<div class="col-xs-4">
		<input type="text" class="form-control" id="tagName"  name="tagName"  disabled="disabled"    value="${sPageParamTag.tagName}"   placeholder="">
	    </div>
	  </div>
	  <div class="form-group">
		<label for="tagType" class="col-xs-2 control-label">标签类型</label>
		<div class="col-xs-4">
		<input type="hidden" class="form-control" id="tagType"  name="tagType"  disabled="disabled"   value="${sPageParamTag.tagType}"  placeholder="">
	                         <select  class="form-control"  id="elementType" name="elementType" disabled="disabled"  onclick="changeValue(this.value)" >
                                  <option value="001" >文本框</option> 
                                  <option value="002" >下拉框</option> 
                                  <option value="003" >日期框</option> 
                                  <option value="004" >密码框</option> 
                                  <option value="005" >备注框</option> 
                             </select>
	    
	    </div>
	    <label for="tagValueSrc" class="col-xs-2 control-label">标签取值</label>
		<div class="col-xs-4">
 		<input type="text" class="form-control" id="tagValueSrc" disabled="disabled"  name="tagValueSrc"  value="${sPageParamTag.tagValueSrc}" >
	    </div>
	 </div>   

	  <div class="form-group  text-center">
         <button type="button" class="btn btn-default"   onclick="goBack();">返回</button>
      </div>
 </form> 
   </div>
</div>

   

<%@ include file="/page/foot.html" %>
